
** Import raw data
infile using "$rawpath\NLSY79_basiccontrols_mother\NLSY79_basiccontrols_mother.dct", clear

** To get labels from raw data
run "$rawpath\NLSY79_basiccontrols_mother\NLSY79_basiccontrols_mother-value-labels.do"

tolower

rename r0000100 mom_pid
rename r0173600 sample_id_1979 
rename r0214700 race 
rename r0214800 sex

*keep women only
keep if sex == 2
*drop military sample -- keep black/poor oversample for now
*drop if sample_id_1979 > 15
*line below kills the supplemental sample
*drop if sample_id_1979 > 8


rename race race_mom

drop sex

save "$rawpath\000_NLSY79_basiccontrols_mother.dta", replace

